<!DOCTYPE HTML>
<html manifest="/data/data.appcache">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>楼层查看</title>
<link type="text/css" rel="stylesheet" href="__TMPL__Public/css/style.css">
<script type="text/javascript" src="__TMPL__Public/js/jquery.min.js"></script>
<script type="text/javascript" src="__TMPL__Public/js/mydemo.js"></script>

</head>

<body>
<div style="height:40px; background:#844289"></div>

<div class="timebox">
	<div class="time"> 
    	<p class='hour'>10:30</p>
        <p class='date'><span class='mouth'>2月28日</span><span class='week'>星期二</span></p> 
    </div>
</div>
<php>$flors = query_sql("select a.*,b.savepath,b.savename from ds_floor a left join ds_attachment b on a.attachmentID = b.id where a.status = 1 order by a.order desc");</php>
<div class="searchbox">
	<dl class="floorbutton tab_title">
    	<Volist name='flors' id='vo'>
    		<dd>{$vo.shortname}</dd>
    	</Volist>
    </dl>
	<div class="mapright">
    	<div class="searchform" style='margin-left:120px;'>
        	<a href="{:U('Shop/shop')}"><input type="text"   list="brand"></a>
        </div>
        
        <div class="mapbox">
        	<div class='zuobiao'><img src="__TMPL__Public/images/timg.png" style='width:120px; position:absolute;right:0;top:0;'></div>
        	<div class="mapslider tab_con">
            	<Volist name='flors' id='vo'>
		    		<div class="map">
	                	<img src="__TMPL__Public/images/{$vo.shortname}.png"/>
	                </div>
		    	</Volist>
            </div> 
        </div> 
    </div> 
</div>

<div class="searchfooter">
	<div class="buttlist">
    	<dl>
        	<dd>
            	<a href="{:U('shop/shop',array('formatid'=>6))}"> 
                    <img src="__TMPL__Public/images/bott1.png"> 
                    <img src="__TMPL__Public/images/txt1.png">
                </a> 
            </dd>
            <dd>
            	<a href="{:U('shop/shop',array('formatid'=>5))}"> 
                    <img src="__TMPL__Public/images/bott2.png"> 
                    <img src="__TMPL__Public/images/txt2.png">
                </a> 
            </dd>
            <dd>
            	<a href="{:U('shop/shop',array('formatid'=>3))}"> 
                    <img src="__TMPL__Public/images/bott3.png"> 
                    <img src="__TMPL__Public/images/txt3.png">
                </a> 
            </dd>
            <dd>
            	<a href="{:U('shop/shop',array('formatid'=>7))}"> 
                    <img src="__TMPL__Public/images/bott4.png"> 
                    <img src="__TMPL__Public/images/txt4.png">
                </a> 
            </dd>
            <dd>
            	<a href="{:U('shop/shop',array('formatid'=>12))}"> 
                    <img src="__TMPL__Public/images/bott5.png"> 
                    <img src="__TMPL__Public/images/txt5.png">
                </a> 
            </dd>
            <dd>
            	<a href="{:U('shop/shop',array('formatid'=>4))}"> 
                    <img src="__TMPL__Public/images/bott11.png"> 
                    <img src="__TMPL__Public/images/txt11.png">
                </a> 
            </dd>
            <dd>
            	<a href="{:U('shop/eat')}"> 
                    <img src="__TMPL__Public/images/bott7.png"> 
                    <img src="__TMPL__Public/images/txt7.png">
                </a> 
            </dd>
            <dd>
            	<a href="{:U('shop/brand')}"> 
                    <img src="__TMPL__Public/images/bott8.png"> 
                    <img src="__TMPL__Public/images/txt8.png">
                </a> 
            </dd>
            <dd>
            	<a href="{:U('shop/active')}"> 
                    <img src="__TMPL__Public/images/bott6.png"> 
                    <img src="__TMPL__Public/images/txt6.png">
                </a> 
            </dd>
            <dd>
            	<a href="{:U('shop/more')}">
                    <img src="__TMPL__Public/images/bott10.png"> 
                    <img src="__TMPL__Public/images/txt10.png">
                </a> 
            </dd> 
        </dl> 
    </div> 
</div>
<script>
		$(function(){
			
			var myDate=new Date(); 
			setTime();
			setInterval(setTime,1000);
			$(".date .mouth").html(myDate.getFullYear()+"年"+(myDate.getMonth()+1)+"月"+myDate.getDate()+"日");
			$(".date .week").html(getweek());
			
			function setTime(){
				myDate=new Date();
				var minutes = myDate.getMinutes();
				var seconds = myDate.getSeconds();
				$(".time .hour").html(myDate.getHours()+":"+(minutes>9?minutes:'0'+minutes)+":"+(seconds>9?seconds:'0'+seconds));
			}
			function getweek(){
				var weeknum = new Date().getDay();
				var str = "";
				if(weeknum==0){
					str="星期日";
				}else if(weeknum==1){
					str="星期一";
				}else if(weeknum==2){
					str="星期二";
				}else if(weeknum==3){
					str="星期三";
				}else if(weeknum==4){
					str="星期四";
				}else if(weeknum==5){
					str="星期五";
				}else if(weeknum==6){
					str="星期六";
				}
				return str;
			}
			
			
			$(".tab_title").children("dd").click(function(){
				var num=$(this).index();
				$(".tab_title").children("dd").removeClass("on");
				$(this).addClass("on");
				var gdx=$(".tab_con");
				var gao=$(".tab_con").children("div").eq(0).height();
				var zhi=gao*num*-1;
				gdx.animate({top:zhi},"300")
				
			});
			
			$(".floorbutton dd").eq(4).click();
		});
	</script>
</body>
</html>
